package com.lagou.controller;

import com.lagou.service.LocalUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserController
 * @Description
 * @Author playboy
 * @Date 2021/7/10 10:55 下午
 * @Version 1.0
 **/
@RestController
@RequestMapping("/user")
@RefreshScope
public class UserController {
	private static Logger log = LoggerFactory.getLogger(UserController.class);

	@Autowired
	private LocalUserService userService;

	@RequestMapping("/info/{token}")
	public String info(@PathVariable("token") String token) {
		return userService.info(token);
	}
}
